home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hardcore Visual Basic 5.0 (2nd Edition)
/
Hardcore Visual Basic 5.0 - Second Edition (1997)(Microsoft Press).iso
/
Source
/
Sieve
/
SIEVEATL
/
SIEVEATL.IDL
< prev
next >
Wrap
Text File
|
1996-10-29
|
1KB
|
48 lines
// SieveATL.Idl : Type library source
// This file will be processed by the MIDL tool to produce
// the type library (ShortCutSvr.tlb) and marshaling code.
[ uuid(18315EE2-B8D4-11CF-AEC1-444553540000),
object, dual, hidden,
helpstring("ICSieveATL Interface"),
pointer_default(unique)
]
interface ICSieveATL : IDispatch {
import "oaidl.idl";
// Properties
[propget, helpstring("The next prime number")]
HRESULT NextPrime([out, retval] short * pi);
[propget,
helpstring("The maximum prime number to evaluate")]
HRESULT MaxPrime([out, retval] short * pi);
[propput]
HRESULT MaxPrime([in] short i);
[propget,
helpstring("Count of calculated prime numbers")]
HRESULT Primes([out, retval] short * pi);
// Methods
[helpstring("Reinitialize the prime number counter")]
HRESULT ReInitialize(void);
[helpstring("Get all primes in a given array")]
HRESULT AllPrimes([in, out] SAFEARRAY(short) * ai);
};
[ uuid(18315EE3-B8D4-11CF-AEC1-444553540000),
version(1.0),
helpstring("Sieve of Eratosthenes As C++ ATL DLL"),
]
library SIEVEATLLib {
importlib("stdole32.tlb");
[ uuid(18315EE7-B8D4-11CF-AEC1-444553540000),
helpstring("CSieveATL Class")
]
coclass CSieveATL {
[default] interface ICSieveATL;
};
};